﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using DriverLicence.Cnsl.Entities;
using DriverLicence.Cnsl.XmlLoader;
using DriverLicence.Cnsl.ViewRender;

namespace DriverLicence.Cnsl
{
    class Program
    {
        //static void Main(string[] args)
        //{
        //    int auxOptionIndex;
        //    Quiz quiz = XmlQuizManager.GetInstance().Load();
        //    ProgramUserInteraction.RenderTitle(quiz.Title);
        //    quiz.SetCantQuestions(ProgramUserInteraction.GetCantQuestions(quiz.GetTotalCantQuestions()));
        //    quiz.GetNextQuestion();
        //    do
        //    {
        //        auxOptionIndex = ProgramUserInteraction.GetOptionIndex(
        //                                                            quiz.GetCurrentQuestionStatement(), 
        //                                                            quiz.GetCurrentQuestionOptions()
        //                                                          );
        //        ProgramUserInteraction.RenderOptionResult(quiz.ChooseOption(auxOptionIndex));
        //    } while (quiz.GetNextQuestion());
        //    ProgramUserInteraction.RenderResult(quiz.GetResult());
        //}

        static void Main(string[] args)
        {
            Console.WriteLine(ConfigurationManager.Get(ConfigurationManager.AppSettingsKey.StartingMonthColumn));
            Console.WriteLine(ConfigurationManager.Get(ConfigurationManager.AppSettingsKey.CategoryHeadingColumn));
            Console.WriteLine(ConfigurationManager.Get(ConfigurationManager.AppSettingsKey.StartingMonthColumn));
            Console.WriteLine(ConfigurationManager.Get(ConfigurationManager.AppSettingsKey.StartingMonthColumn));
            Console.ReadKey();
        }
    }
}
